package v2.chapter8.sourceAnnotations; 

public class ToStrings {
	public static String toString(v2.chapter8.rect.Point obj) {
        StringBuilder result = new StringBuilder();
        result.append("[");
        result.append(toString(obj.getX()));
        result.append(",");
        result.append(toString(obj.getY()));
        result.append("]");
        return result.toString();
    }
	
	public static String toString(v2.chapter8.rect.Rectangle obj) {
		StringBuilder result = new StringBuilder();
        result.append("v2.chapter8.rect.Rectangle");
        result.append("[");
        result.append(toString(obj.getTopLeft()));
        result.append(",");
        result.append("width=");
        result.append(toString(obj.getWidth()));
        result.append(",");
        result.append("height=");
        result.append(toString(obj.getHeight()));
        result.append("]");
        return result.toString();
	}
	
	public static String toString(Object obj) {
		return java.util.Objects.toString(obj);
	}
}
